from flask import Blueprint, render_template, request, jsonify
from models.my_model import Post, R
from sqlalchemy import func

page_error = Blueprint("page_error", __name__)


@page_error.errorhandler(401)
def handle_401():
    msg: str = "Yes!"
    return render_template("TEMPLATE.html", msg=msg), 401
    # return jsonify(R(code=200, msg="OKKKKK", data={"data": "121212"}).define())



